﻿<include file='Admin/Tpl/Public/nav.html' />
<style>	
	td{padding:5px;}
	.must_tab{color:red}
</style>			
			<!-- BEGIN SIDEBAR RIGHT -->
			<div class="sidebar-right sidebar-nicescroller">
				<div class="tab-content">
				  <div class="tab-pane fade in active" id="online-user-sidebar">
					<ul class="sidebar-menu online-user">
						<li class="static">ONLINE USERS</li>
						<li><a href="#fakelink">
							<span class="user-status success"></span>
							<img src="assets/img/avatar/avatar-2.jpg" class="ava-sidebar img-circle" alt="Avatar">
							<i class="fa fa-mobile-phone device-status"></i>
							Thomas White 
							<span class="small-caps">Lorem ipsum dolor sit amet, consectetuer adipiscing elit</span>
						</a></li>
						<li><a href="#fakelink">
							<span class="user-status success"></span>
							<img src="assets/img/avatar/avatar-3.jpg" class="ava-sidebar img-circle" alt="Avatar">
							Doina Slaivici
							<span class="small-caps">Duis autem vel eum iriure dolor in hendrerit in </span>
						</a></li>
						<li><a href="#fakelink">
							<span class="user-status success"></span>
							<img src="assets/img/avatar/avatar-4.jpg" class="ava-sidebar img-circle" alt="Avatar">
							<i class="fa fa-android device-status"></i>
							Harry Nichols
							<span class="small-caps">I think so</span>
						</a></li>
						<li><a href="#fakelink">
							<span class="user-status success"></span>
							<img src="assets/img/avatar/avatar-5.jpg" class="ava-sidebar img-circle" alt="Avatar">
							<i class="fa fa-mobile-phone device-status"></i>
							Mihaela Cihac
							<span class="small-caps">Yes, I'll be waiting</span>
						</a></li>
						<li><a href="#fakelink">
							<span class="user-status success"></span>
							<img src="assets/img/avatar/avatar-6.jpg" class="ava-sidebar img-circle" alt="Avatar">
							<i class="fa fa-apple device-status"></i>
							Harold Chavez
							<span class="small-caps">Thank you!</span>
						</a></li>
						
						<li class="static">IDLE USERS</li>
						<li><a href="#fakelink">
							<span class="user-status warning"></span>
							<img src="assets/img/avatar/avatar-7.jpg" class="ava-sidebar img-circle" alt="Avatar">
							<i class="fa fa-windows device-status"></i>
							Elizabeth Owens
							<span class="small-caps">2 hours</span>
						</a></li>
						<li><a href="#fakelink">
							<span class="user-status warning"></span>
							<img src="assets/img/avatar/avatar-8.jpg" class="ava-sidebar img-circle" alt="Avatar">
							<i class="fa fa-apple device-status"></i>
							Frank Oliver
							<span class="small-caps">4 hours</span>
						</a></li>
						<li><a href="#fakelink">
							<span class="user-status warning"></span>
							<img src="assets/img/avatar/avatar-9.jpg" class="ava-sidebar img-circle" alt="Avatar">
							Mya Weastell
							<span class="small-caps">15 minutes</span>
						</a></li>
						<li><a href="#fakelink">
							<span class="user-status warning"></span>
							<img src="assets/img/avatar/avatar-10.jpg" class="ava-sidebar img-circle" alt="Avatar">
							<i class="fa fa-mobile-phone device-status"></i>
							Carl Rodriguez
							<span class="small-caps">20 hours</span>
						</a></li>
						<li><a href="#fakelink">
							<span class="user-status warning"></span>
							<img src="assets/img/avatar/avatar-11.jpg" class="ava-sidebar img-circle" alt="Avatar">
							<i class="fa fa-mobile-phone device-status"></i>
							Nikita Carter
							<span class="small-caps">2 minutes</span>
						</a></li>
						
						<li class="static">OFFLINE USERS</li>
						<li><a href="#fakelink">
							<span class="user-status danger"></span>
							<img src="assets/img/avatar/avatar-12.jpg" class="ava-sidebar img-circle" alt="Avatar">
							Craig Dixon
							<span class="small-caps">Last seen 2 hours ago</span>
						</a></li>
						<li><a href="#fakelink">
							<span class="user-status danger"></span>
							<img src="assets/img/avatar/avatar-13.jpg" class="ava-sidebar img-circle" alt="Avatar">
							Mikayla King
							<span class="small-caps">Last seen yesterday</span>
						</a></li>
						<li><a href="#fakelink">
							<span class="user-status danger"></span>
							<img src="assets/img/avatar/avatar-14.jpg" class="ava-sidebar img-circle" alt="Avatar">
							Richard Dixon
							<span class="small-caps">Last seen Feb 20, 2014 05:45:50</span>
						</a></li>
						<li><a href="#fakelink">
							<span class="user-status danger"></span>
							<img src="assets/img/avatar/avatar-15.jpg" class="ava-sidebar img-circle" alt="Avatar">
							Brenda Fuller
							<span class="small-caps">Last seen Feb 15, 2014 11:35:50</span>
						</a></li>
						<li><a href="#fakelink">
							<span class="user-status danger"></span>
							<img src="assets/img/avatar/avatar-16.jpg" class="ava-sidebar img-circle" alt="Avatar">
							Ryan Ortega
							<span class="small-caps">Last seen Jan 20, 2014 03:45:50</span>
						</a></li>
					</ul>
				  </div>
				</div><!-- /.tab-content -->
			</div><!-- /.sidebar-right -->
			<!-- END SIDEBAR RIGHT -->
			
			
			
			<!-- BEGIN PAGE CONTENT -->
			<div class="page-content">				
				<div class="container-fluid">
					<!-- Begin page heading -->
					<h1 class="page-heading">Team In　<small>公司部门管理</small></h1>
					<!-- End page heading -->
				
					<!-- Begin breadcrumb -->
					<ol class="breadcrumb default square rsaquo sm">
						<li><a href="index.html"><i class="fa fa-home"></i></a></li>
						<li><a href="#fakelink">Teamin</a></li>
						<li class="active">部门添加</li>
					</ol>

					 <div class="btn-group groups">
                                <a href="__URL__" class="btn btn-success">返回部门列表</a>
                            </div>
                           
					<!-- End breadcrumb -->
					
				<div class="the-box no-border store-list">					
				    <form id="ExampleBootstrapValidationForm" method="post" action="__URL__/addAct" class="form-horizontal" enctype="multipart/form-data">		
					   <div class="form-group">
                				  <label class="col-lg-3 control-label">部门名称<span class="must_tab">*</span></label>
                				  <div class="col-lg-5">
                     				<input type="text" class="form-control need"  type="text" name="department_name"  />
                				  </div>
           			    	   </div>					   
				         <div class="form-group">
							<label class="col-lg-3 control-label">所在城市 <span style="color:red">*</span></label>
							<div class="col-lg-5">
								<select class="form-control" tabindex="2" name="local_id" id="select">
									<foreach name="city" item="value">
										<option value="{$value.local_id}">{$value.local_name}</option>
									</foreach>														
								</select>								
							</div>
						</div>	

						<div class="form-group">
							<label class="col-lg-3 control-label">楼名 <span style="color:red">*</span></label>
							<div class="col-lg-5">											
								<select class="form-control" tabindex="2" name="building_id" id="select">
									<foreach name="build" item="value">
										<option value="{$value.building_id}">{$value.building_name}</option>
								 	</foreach>														
								</select>
								
							</div>
						</div>

						<div class="form-group">
							<label class="col-lg-3 control-label">部门楼层 <span style="color:red">*</span></label>
							<div class="col-lg-5">
								<select class="form-control" tabindex="2" name="floor_id" id="select">
									<foreach name="floor" item="value">
										<option value="{$value.floor_id}">{$value.floor_name}</option>
									</foreach>														
								</select>
								
							</div>
						</div>

						<div class="form-group">
							<label class="col-lg-3 control-label"> 隶属部门 <span style="color:red">*</span></label>
							<div class="col-lg-5">
								<select class="form-control" tabindex="2" name="department_pid">
									<option class="option" value="0" >根部门</option>
									<foreach name="departments" item="value">
										<option class="option" value="{$value.department_id}">{$value.department_name}</option>
									</foreach>
								</select>
							</div>
						</div>
						
							<!-- 
							<div class="form-group">
                                        <label class="col-lg-3 control-label">部门简介<span class="must_tab">*</span></label>
                                        <div class="col-lg-5">
                                            <textarea class="form-control need" name="department_project"></textarea>
                                        </div>
                                		</div>
							
							<div class="form-group">
                				  		<label class="col-lg-3 control-label">部门负责人<span class="must_tab">*</span></label>
                				  		<div class="col-lg-5">
                     						<input type="text" class="form-control need"  type="text" name="department_leader"  />
                				  		</div>
           			    		</div>							 
							<div class="form-group">
                				  		<label class="col-lg-3 control-label">部门电话<span class="must_tab">*</span></label>
                				  		<div class="col-lg-5">
                     						<input type="text" class="form-control need"  type="text" name="department_number"  />
                				  		</div>
           			    		</div>-->
							
						<div class="form-group">
				             	<div class="col-lg-9 col-lg-offset-3">                                  
				                 		<input class="btn btn-primary button btn-success" id="submit" style="font-weight:bold"  type="submit" value="添加" />
				             	</div>
				         	</div>	
					</form>				
				</div><!-- /.container-fluid -->

				<!--城市添加-->
				<div class="add_bg" style="display:none;background:black;opacity:0.3;position:absolute;z-index:50;top:0px;left:0px;bottom:0px;width:100%;height:"></div>					
				<div class="add_data add_city the-box" style="display:none;border-radius:3px;position:absolute;z-index:100;left:30%;top:30%;" >
					<div class="sub sub_remove" style="float:right;font-size:20px;">x</div>
					<h4 id="title_name">城市添加:</h4>
					<div class="input">
						<input style="margin-bottom:5px" class="local_name form-control must" id="local" type="text" name="local_name" />
					</div>	
					<br />
					<div style="float:left;margin-right:5px;" class="sub sub_add btn btn-info">添加</div>
					<div style="float:left;" class="sub sub_remove btn btn-danger">取消</div>
				</div>
				<!--城市添加结束-->			
			</div><!-- /.page-content -->
		</div><!-- /.wrapper -->
		<!-- END PAGE CONTENT -->		
	</body>
	<script type="text/javascript">
	    var len = $('.need').length;
	    $("#submit").click(function(){
	        for(var i=0;i<len;i++){
	            if($(".need:eq("+i+")").val()==""){
	                $(".need:eq("+i+")").css({border:"2px solid red"});
	                return false;
	            }
	        }
	    });

	    $(".need").focus(function(){
	        $(this).css({border:"2px solid #89F2D8"});
	    });
	    $(".need").blur(function(){
	        $(this).css({border:""});
	    });
	</script>

	
</html>
